package main

import (
	"crypto/sha256"
	"crypto/sha512"
	"fmt"
)

func genHash(hashType, str string) {
	switch hashType {
	case "SHA384":
		fmt.Printf("%x\n", sha512.Sum384([]byte(str)))
		return
	case "SHA512":
		fmt.Printf("%x\n", sha512.Sum512([]byte(str)))
		return
	default:
		fmt.Printf("%x\n", sha256.Sum256([]byte(str)))
		return
	}
}
